package org.wangnian.validationdemo.model;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

public class BookList {

//    @NotEmpty(message = "bookList 不能为空")
    @NotEmpty(message = "{bookList.notnull}")
    @Valid
    private List<Book> bookList;

    public List<Book> getBookList() {
        return bookList;
    }

    public void setBookList(List<Book> bookList) {
        this.bookList = bookList;
    }
}
